package net.hn.hnms.biz.project.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper=false)
@Table(name = "check_rectification", schema = "xmgl", catalog = "huaneng-manage")
public class CheckRectification extends BaseModel implements Serializable {

    @ApiModelProperty(value = "id")
    @TableId(type = IdType.ASSIGN_UUID)
    private String checkId;

    @ApiModelProperty(value = "检查标题")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String checkTitle;


    @ApiModelProperty(value = "检查日期")
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private Date checkTime;


    @ApiModelProperty(value = "整改日期")
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private Date rectificationTime;



    @ApiModelProperty(value = "检查人")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String checkUser;

    @ApiModelProperty(value = "检查结果")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String checkResult;

    @ApiModelProperty(value = "整改结果")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String rectificationResult;

    @ApiModelProperty(value = "整改人")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String rectificationUser;

    @ApiModelProperty(value = "项目ID")
    private String projectId;
}
